		<div class="categories">
			<a href="/godeal/home/">
				<div class="category <?php if(!isset($category) && !isset($adeal) && !isset($me) && !isset($banners)) echo 'category-active'; ?>">Все</div>
			</a>
			<?php foreach ($categories as $cat) { ?>
			<a href="/godeal/home/all/category/<?php echo $cat->id ?>">
				<div class="category <?php if(isset($category) && $category == $cat->id) echo 'category-active'; ?>"><?php echo $cat->name ?></div>
			</a>
			<?php } ?>
		</div>